ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Filter Lines

by davidpeckham ALL

Quickly find all lines matching a string or regular expression

Labels search

Details

  • 3.1.4
    2.0.3
  • github.​com
  • github.​com
  • 6 years ago
  • 53 minutes ago
  • 12 years ago

Installs

  • Total 38K
  • Win 17K
  • Mac 15K
  • Linux 5K
Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27
Windows 0 4 2 2 3 1 2 5 4 1 1 2 2 5 6 0 2 2 0 2 7 3 4 4 3 1 2 5 4 4 3 0 0 4 2 7 4 0 1 0 2 1 7 1 1 4
Mac 1 4 2 0 1 1 7 5 4 6 1 2 3 3 6 4 5 0 2 2 5 5 4 3 3 3 4 3 4 4 6 1 0 6 7 6 7 7 2 3 1 2 3 6 3 1
Linux 0 1 1 1 0 0 1 0 1 0 0 1 0 0 1 2 0 2 0 1 2 0 0 0 0 1 0 2 3 2 0 1 1 2 1 0 3 0 0 0 0 1 2 1 1 2
0510Jun 11Jun 8Jun 5Jun 2May 30May 27May 24May 21May 18May 15May 12May 9May 6May 3Apr 30Apr 27Jun 11 Linux: 0 Mac: 1 Windows: 0Jun 10 Linux: 1 Mac: 4 Windows: 4Jun 9 Linux: 1 Mac: 2 Windows: 2Jun 8 Linux: 1 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 1 Windows: 3Jun 6 Linux: 0 Mac: 1 Windows: 1Jun 5 Linux: 1 Mac: 7 Windows: 2Jun 4 Linux: 0 Mac: 5 Windows: 5Jun 3 Linux: 1 Mac: 4 Windows: 4Jun 2 Linux: 0 Mac: 6 Windows: 1Jun 1 Linux: 0 Mac: 1 Windows: 1May 31 Linux: 1 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 3 Windows: 2May 29 Linux: 0 Mac: 3 Windows: 5May 28 Linux: 1 Mac: 6 Windows: 6May 27 Linux: 2 Mac: 4 Windows: 0May 26 Linux: 0 Mac: 5 Windows: 2May 25 Linux: 2 Mac: 0 Windows: 2May 24 Linux: 0 Mac: 2 Windows: 0May 23 Linux: 1 Mac: 2 Windows: 2May 22 Linux: 2 Mac: 5 Windows: 7May 21 Linux: 0 Mac: 5 Windows: 3May 20 Linux: 0 Mac: 4 Windows: 4May 19 Linux: 0 Mac: 3 Windows: 4May 18 Linux: 0 Mac: 3 Windows: 3May 17 Linux: 1 Mac: 3 Windows: 1May 16 Linux: 0 Mac: 4 Windows: 2May 15 Linux: 2 Mac: 3 Windows: 5May 14 Linux: 3 Mac: 4 Windows: 4May 13 Linux: 2 Mac: 4 Windows: 4May 12 Linux: 0 Mac: 6 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 0May 10 Linux: 1 Mac: 0 Windows: 0May 9 Linux: 2 Mac: 6 Windows: 4May 8 Linux: 1 Mac: 7 Windows: 2May 7 Linux: 0 Mac: 6 Windows: 7May 6 Linux: 3 Mac: 7 Windows: 4May 5 Linux: 0 Mac: 7 Windows: 0May 4 Linux: 0 Mac: 2 Windows: 1May 3 Linux: 0 Mac: 3 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 2May 1 Linux: 1 Mac: 2 Windows: 1Apr 30 Linux: 2 Mac: 3 Windows: 7Apr 29 Linux: 1 Mac: 6 Windows: 1Apr 28 Linux: 1 Mac: 3 Windows: 1Apr 27 Linux: 2 Mac: 1 Windows: 4Jun 11 Linux: 0 Mac: 1 Windows: 0Jun 10 Linux: 1 Mac: 4 Windows: 4Jun 9 Linux: 1 Mac: 2 Windows: 2Jun 8 Linux: 1 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 1 Windows: 3Jun 6 Linux: 0 Mac: 1 Windows: 1Jun 5 Linux: 1 Mac: 7 Windows: 2Jun 4 Linux: 0 Mac: 5 Windows: 5Jun 3 Linux: 1 Mac: 4 Windows: 4Jun 2 Linux: 0 Mac: 6 Windows: 1Jun 1 Linux: 0 Mac: 1 Windows: 1May 31 Linux: 1 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 3 Windows: 2May 29 Linux: 0 Mac: 3 Windows: 5May 28 Linux: 1 Mac: 6 Windows: 6May 27 Linux: 2 Mac: 4 Windows: 0May 26 Linux: 0 Mac: 5 Windows: 2May 25 Linux: 2 Mac: 0 Windows: 2May 24 Linux: 0 Mac: 2 Windows: 0May 23 Linux: 1 Mac: 2 Windows: 2May 22 Linux: 2 Mac: 5 Windows: 7May 21 Linux: 0 Mac: 5 Windows: 3May 20 Linux: 0 Mac: 4 Windows: 4May 19 Linux: 0 Mac: 3 Windows: 4May 18 Linux: 0 Mac: 3 Windows: 3May 17 Linux: 1 Mac: 3 Windows: 1May 16 Linux: 0 Mac: 4 Windows: 2May 15 Linux: 2 Mac: 3 Windows: 5May 14 Linux: 3 Mac: 4 Windows: 4May 13 Linux: 2 Mac: 4 Windows: 4May 12 Linux: 0 Mac: 6 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 0May 10 Linux: 1 Mac: 0 Windows: 0May 9 Linux: 2 Mac: 6 Windows: 4May 8 Linux: 1 Mac: 7 Windows: 2May 7 Linux: 0 Mac: 6 Windows: 7May 6 Linux: 3 Mac: 7 Windows: 4May 5 Linux: 0 Mac: 7 Windows: 0May 4 Linux: 0 Mac: 2 Windows: 1May 3 Linux: 0 Mac: 3 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 2May 1 Linux: 1 Mac: 2 Windows: 1Apr 30 Linux: 2 Mac: 3 Windows: 7Apr 29 Linux: 1 Mac: 6 Windows: 1Apr 28 Linux: 1 Mac: 3 Windows: 1Apr 27 Linux: 2 Mac: 1 Windows: 4Jun 11 Linux: 0 Mac: 1 Windows: 0Jun 10 Linux: 1 Mac: 4 Windows: 4Jun 9 Linux: 1 Mac: 2 Windows: 2Jun 8 Linux: 1 Mac: 0 Windows: 2Jun 7 Linux: 0 Mac: 1 Windows: 3Jun 6 Linux: 0 Mac: 1 Windows: 1Jun 5 Linux: 1 Mac: 7 Windows: 2Jun 4 Linux: 0 Mac: 5 Windows: 5Jun 3 Linux: 1 Mac: 4 Windows: 4Jun 2 Linux: 0 Mac: 6 Windows: 1Jun 1 Linux: 0 Mac: 1 Windows: 1May 31 Linux: 1 Mac: 2 Windows: 2May 30 Linux: 0 Mac: 3 Windows: 2May 29 Linux: 0 Mac: 3 Windows: 5May 28 Linux: 1 Mac: 6 Windows: 6May 27 Linux: 2 Mac: 4 Windows: 0May 26 Linux: 0 Mac: 5 Windows: 2May 25 Linux: 2 Mac: 0 Windows: 2May 24 Linux: 0 Mac: 2 Windows: 0May 23 Linux: 1 Mac: 2 Windows: 2May 22 Linux: 2 Mac: 5 Windows: 7May 21 Linux: 0 Mac: 5 Windows: 3May 20 Linux: 0 Mac: 4 Windows: 4May 19 Linux: 0 Mac: 3 Windows: 4May 18 Linux: 0 Mac: 3 Windows: 3May 17 Linux: 1 Mac: 3 Windows: 1May 16 Linux: 0 Mac: 4 Windows: 2May 15 Linux: 2 Mac: 3 Windows: 5May 14 Linux: 3 Mac: 4 Windows: 4May 13 Linux: 2 Mac: 4 Windows: 4May 12 Linux: 0 Mac: 6 Windows: 3May 11 Linux: 1 Mac: 1 Windows: 0May 10 Linux: 1 Mac: 0 Windows: 0May 9 Linux: 2 Mac: 6 Windows: 4May 8 Linux: 1 Mac: 7 Windows: 2May 7 Linux: 0 Mac: 6 Windows: 7May 6 Linux: 3 Mac: 7 Windows: 4May 5 Linux: 0 Mac: 7 Windows: 0May 4 Linux: 0 Mac: 2 Windows: 1May 3 Linux: 0 Mac: 3 Windows: 0May 2 Linux: 0 Mac: 1 Windows: 2May 1 Linux: 1 Mac: 2 Windows: 1Apr 30 Linux: 2 Mac: 3 Windows: 7Apr 29 Linux: 1 Mac: 6 Windows: 1Apr 28 Linux: 1 Mac: 3 Windows: 1Apr 27 Linux: 2 Mac: 1 Windows: 4

Readme

Source
raw.​githubusercontent.​com

Filter Lines

Quickly find all lines matching a string or regular expression in Sublime Text.

How to Filter

On the Edit > Line menu:

  • Include Lines With Regex ⌘+K ⌘+R
  • Include Lines With String ⌘+K ⌘+S
  • Exclude Lines With Regex
  • Exclude Lines With String

On the Edit > Code Folding menu:

  • Fold Excluding Regex
  • Fold Excluding String
  • Fold With Regex
  • Fold With String

On Windows and Linux, use ctrl instead of .

How to Install

Install with Package Control

  1. Install Sublime Package Control
  2. Open the command pallette ⌘+shift+P
  3. Select Install Package
  4. Select Filter Lines

Install with Git

  1. Open the Sublime Text package folder (see Sublime Text > Preferences > Browse Packages…)
  2. Clone this repo
  3. Restart Sublime Text

Demo

Filter Lines Demo

Thanks

Filter Lines is based on a Sublime Text plugin tutorial by Daniel Beck. If you want to write a plugin, Daniel's tutorial is a good place to start.